/* 
 * 公共样式
 */

.scrollTop {
	width: 90rpx;
	height: 90rpx;
	background: rgba(255, 255, 255, 0.7);
	border: 2rpx solid #ebeae7;
	border-radius: 50%;
	position: fixed;
	right: -130rpx;
	top: 84vh;
	z-index: 1000;
	opacity: 0;
	transition: 0.5s;
	@include flexBox(center, center);
	&.show {
		opacity: 1;
		right: 30rpx;
	}
	.iconfont {
		font-size: 36rpx;
	}
}

@mixin text_ellipsis($line: 2) {
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: $line;
}

@mixin safe_area($direction, $mode: inset) {
	padding-#{$direction}: env(safe-area-#{$mode}-#{$direction});
}

.loading {
	position: absolute;
	width: 100%;
	height: 100%;
	background: rgba(242, 243, 245, 0.4);
	@include flexBox(center);
	.load-item {
		width: 20rpx;
		height: 60%;
		margin: 0 10rpx;
		border-radius: 50rpx;
		&.pink {
			background: #fb889b;
			animation: pink 0.8s infinite;
		}
		&.red {
			background: #fb8888;
			animation: red 0.8s infinite;
		}
		&.orange {
			background: #fba488;
			animation: orange 0.8s infinite;
		}
		&.yellow {
			background: #fbc188;
			animation: yellow 0.8s infinite;
		}
	}
}
.copy-btn {
	width: 18rpx;
	height: 18rpx;
	border: 1rpx solid #4D93FF;
	border-radius: 4rpx;
	background: #fff;
	position: relative;
	.copy-inner {
		width: 18rpx;
		height: 18rpx;
		border: 1rpx solid #4D93FF;
		border-radius: 4rpx;
		background: #fff;
		position: absolute;
		right: -7rpx;
		bottom: -7rpx;
	}
}
@keyframes pink {
	0% {
		margin-top: -16rpx;
	}

	50% {
		margin-top: 16rpx;
	}

	100% {
		margin-top: -16rpx;
	}
}
@keyframes red {
	0% {
		margin-top: 16rpx;
	}

	50% {
		margin-top: -16rpx;
	}

	100% {
		margin-top: 16rpx;
	}
}
@keyframes orange {
	0% {
		margin-top: -16rpx;
	}

	50% {
		margin-top: 16rpx;
	}

	100% {
		margin-top: -16rpx;
	}
}
@keyframes yellow {
	0% {
		margin-top: 16rpx;
	}

	50% {
		margin-top: -16rpx;
	}

	100% {
		margin-top: 16rpx;
	}
}